package com.four.util;

import java.util.List;

import com.four.entity.Order;
import com.four.entity.Product;

public class Result {
	public Integer code;// 0,1
	public String msg;
	
	public Integer count;
	public Object data;
	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	@Override
	public String toString() {
		return "Result [code=" + code + ", msg=" + msg + ", data=" + data + ", count=" + count + "]";
	}

	public Result(Integer code, String msg, Object data) {
		super();
		this.code = code;
		this.msg = msg;
		this.data = data;
	}

	public Result(Integer code, String msg, Object data, Integer count) {
		super();
		this.code = code;
		this.msg = msg;
		this.data = data;
		this.count = count;
	}
	
	
	public Result(Integer code, String msg) {
		super();
		this.code = code;
		this.msg = msg;
	}

	public Result(String msg, Object data) {
		super();
		this.msg = msg;
		this.data = data;
	}

	public Result(String msg, Integer count) {
		super();
		this.msg = msg;
		this.count = count;
	}

	public Result(Integer code, String msg, Integer count) {
		super();
		this.code = code;
		this.msg = msg;
		this.count = count;
	}

	public Result(Integer code, String msg, Integer count, Object data) {
		super();
		this.code = code;
		this.msg = msg;
		this.count = count;
		this.data = data;
	}

	public Result(String string, String string2, int count2, List<Order> list) {
		// TODO Auto-generated constructor stub
	}


}
